package org.nativejpa.query;

/**
 * Callback for Query Synchronization, can be used to call cache and others need to be done around Query 
 *
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 * @create 2009-3-18 10:46:48
 */
public interface QuerySynchronization {

    public void beforeExecuteUpdate(SQLQuery query);

    public void beforeExecuteQuery(SQLQuery query);

    public void afterExecuteQuery(SQLQuery query, boolean success);

    public void afterExecuteUpdate(SQLQuery query, boolean success);

}
